package com.example.demo.classes;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SginPK implements Serializable {
    private long uid;
    private long aid;

    @Override
    public boolean equals(Object o)
    {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SginPK that = (SginPK) o;
        return Objects.equals(uid,that.uid)&&Objects.equals(aid,that.aid);
    }
    @Override
    public int hashCode()
    {
        return Objects.hash(uid,aid);
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public long getAid() {
        return aid;
    }

    public void setAid(long aid) {
        this.aid = aid;
    }
    
}
